﻿@using Back_end.Models
@model LoginViewModel
@{
    ViewBag.Title = "登录";
}

@*<div class="row">
		<div class="col-md-8">
			<section id="loginForm">
				@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
				{
					@Html.AntiForgeryToken()
					<h4>使用本地帐户登录。</h4>
					<hr />
					@Html.ValidationSummary(true, "", new { @class = "text-danger" })
					<div class="form-group">
						@Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
						<div class="col-md-10">
							@Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
							@Html.ValidationMessageFor(m => m.UserName, "", new { @class = "text-danger" })
						</div>
					</div>
					<div class="form-group">
						@Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
						<div class="col-md-10">
							@Html.PasswordFor(m => m.Password, new { @class = "form-control" })
							@Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-offset-2 col-md-10">
							<div class="checkbox">
								@Html.CheckBoxFor(m => m.RememberMe)
								@Html.LabelFor(m => m.RememberMe)
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-offset-2 col-md-10">
							<input type="submit" value="登录" class="btn btn-default" />
						</div>
					</div>
					<p>
						@Html.ActionLink("注册为新用户", "Register")
					</p>
					 在为密码重置功能启用帐户确认后启用此项
						<p>
							@Html.ActionLink("忘记了密码?", "ForgotPassword")
						</p>
				}
			</section>
		</div>
	</div>*@

<div class="row" style="margin-top:75px; margin-bottom:75px;opacity:0.95">
	<div class="col-md-2"> </div>
	<div class="panel panel-primary col-md-4">
		<div class="panel-heading">@ViewBag.Title</div>
		<div class="panel-body" style="color:black">
			<section id="loginForm">
				@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
				{
					@Html.AntiForgeryToken()
					<h4 style="font-family:'Microsoft YaHei UI'">输入用户名以及密码进行登录</h4>
					<hr />
					@Html.ValidationSummary(true, "", new { @class = "text-danger" })
					<div class="form-group" style="margin-left:20px">
						<div class="col-md-10 input-group">
							<span class="input-group-addon glyphicon glyphicon-user"></span>
							@Html.TextBoxFor(m => m.UserName, new { @class = "form-control", @placeholder = "在此输入用户名" })
							@Html.ValidationMessageFor(m => m.UserName, "", new { @class = "text-danger" })
						</div>
					</div>
					<div class="form-group" style="margin-left:20px">
						<div class="col-md-10 input-group">
							<span class="input-group-addon glyphicon glyphicon-pencil"></span>
							@Html.PasswordFor(m => m.Password, new { @class = "form-control", @placeholder = "在此输入密码" })
							@Html.ValidationMessageFor(m => m.Password, "", new { @class = "text-danger" })
						</div>
					</div>
					<div class="form-group" style="margin-left:0px">
						<div class="col-lg-offset-1 col-md-10">
							<div class="checkbox">
								@Html.CheckBoxFor(m => m.RememberMe)
								@Html.LabelFor(m => m.RememberMe)
							</div>
						</div>
					</div>
					<div class="form-group" style="margin-left:10px">
						<div class="col-md-10">
							<input type="submit" value="登录" class="btn btn-default" />
						</div>
					</div>
				}
			</section>
		</div>
	</div>
	<div class="col-lg-offset-1 col-md-4" style="margin-top:75px">
		<h2 style="font-family:'Microsoft YaHei UI'">晴空®大气监控平台</h2>
		<h3 style="font-family:'Microsoft YaHei UI'">后台管理系统</h3>
		@Html.ActionLink("联系我们", "Contact", "Account", htmlAttributes: new { @class = "btn btn-success btn-sm" })
	</div>
	<div class="col-md-2"> </div>
</div>

<style>
	body {
		background: url(/Image/bgPhoto2.jpg) no-repeat;
		color: white;
	}
</style>

@section Scripts {
	@Scripts.Render("~/bundles/jqueryval")
}